#define  _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<string>
using namespace std;
int main() {
	//string s1("helllo world");
	////cout << s1[890890]<< " " ;


	//

	////string::iterator d1 = s1.begin();

	////while (d1 != s1.end() ){
	////	(*d1)++;
	////	cout << *(d1) << " ";
	////	d1++;
	////}
	////string s2("Hello world");
	////s2.push_back('d');
	////s2.append("hahaha");
	////s2.append(10, '!');
	////string s1("Hello pp");
	////s2.append(s1.begin()+6, s1.end());
	////cout << s2 << endl;

	////string s3 = ("dd");
	////s3.reserve(10000);

	////int old = s3.capacity();

	////cout << s3.capacity() << endl;
	////for (int i = 1; i < 100; i++) {
	////	s3 += '2';
	////	if (s3.capacity() != old) {
	////		cout << s3.capacity() << endl;
	////		old = s3.capacity();
	////	}


	//////}
	////s1.insert(0, "dd");
	////string s2("ssss");
	////cout << s1<<endl;
	////s1.replace(0, 2, s2, 0, 2);
	////	cout << s1<<endl;
	////	string s3;
	////	for (auto j : s1) {
	////		if (j  !='l') {
	////			s3 += j;
	////		}
	////		else {
	////			s3 += ' ';
	////		}

	////	}
	////	s1 = s3;
	////	
	////	cout << s1 << endl;
	//string a1("Hello world");
	//size_t i = a1.find_first_not_of('l');
	//
	//while (i != string::npos) {
	//	cout << a1[i];
	//	i= a1.find_first_not_of('l',i+1);
	//	
	//}



		return 0;
}